package park;

public class J15Ex04Extends {
	
	

}

class A{
	
	private int n;
	public int getN(){return n;}
	
	public void setN(int n){this.n = n;}
		
}

class B extends A{
	
	//private int n; 상속으로 대신함
	
	public String s;
	public int m;
	private char c;
	
	
	
	public String getS() {
		return s;
	}
	public void setS(String s) {
		this.s = s;
	}
	public int getM() {
		return m;
	}
	public void setM(int m) {
		this.m = m;
	}
	public char getC() {
		return c;
	}
	public void setC(char c) {
		this.c = c;
	}
	
	
	
}


class C extends B{
	
	public double d;
	
	

	public double getD() {
		return d;
	}

	public void setD(double d) {
		this.d = d;
	}
	
	
	
}







